package it.sd.wdc.spider.htmlbrowser;

import org.apache.commons.httpclient.HttpClient;
import org.apache.commons.httpclient.MultiThreadedHttpConnectionManager;

/**
 * La classe contiene i metodi necessari per scaricare le pagine HTML da un
 * server web, inoltre contiene alcuni metodi di servizio usati per preparare la
 * chiamata ai metodi di navigazione
 */
public class WebTcpClient {

	MultiThreadedHttpConnectionManager cm = null;
    HttpClient client = null;

	public WebTcpClient(int timeout) {
		
		cm = new MultiThreadedHttpConnectionManager();
	    client = new HttpClient(cm);
	    
	}

	public WebTcpClientSession newSession() {
		return new WebTcpClientSession(client);
	}
	
	
}
